#include<stdio.h>

#define ONE 00000001
#define TWO 00000010
#define THREE 00000100

void func(int flags)
{
    if(flags & ONE) printf("flags has ONE!");
    if(flags & TWO) printf("flags has TWO!");
    if(flags & THREE) printf("flags has THREE!");
    printf("\n");
}
